package com.yujn.order.feign;

import com.yujn.common.bean.Result;
import com.yujn.order.bean.Product;
import com.yujn.order.bean.User;
import com.yujn.order.config.FeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "study-mall-product", path = "product")
public interface ProductFeign {
    @GetMapping("/{id}")
    Result<Product> getProductById(@PathVariable("id") String id);
}
